import request from '@/utils/request'

// 查询消息信息列表
export function listBasicMessage(query) {
  return request({
    url: '/basic/system/basicMessage/list',
    method: 'get',
    params: query
  })
}

// 查询消息信息详细
export function getBasicMessage(messageId) {
  return request({
    url: '/basic/system/basicMessage/' + messageId,
    method: 'get'
  })
}

// 新增消息信息
export function addBasicMessage(data) {
  return request({
    url: '/basic/system/basicMessage',
    method: 'post',
    data: data
  })
}

// 修改消息信息
export function updateBasicMessage(data) {
  return request({
    url: '/basic/system/basicMessage',
    method: 'put',
    data: data
  })
}

// 删除消息信息
export function delBasicMessage(messageId) {
  return request({
    url: '/basic/system/basicMessage/' + messageId,
    method: 'delete'
  })
}
